$(function(){
	var guest = {
		init:function(){
			this.getGuestData();
		},
		getGuestData:function(){
			var tpl = $('#guestList').html(),
				template = Handlebars.compile(tpl);
			$.ajax({
				type:"post",
				url:"http://fenghui.ruthout.com/V2018_XIAN/jiabin/getJiabinList",
				async:true,
				success:function(res){
					var swjiabin = res.data;//嘉宾列表
					console.log(swjiabin);
					var html = template(swjiabin);
					console.log(html)
					$('.guest_ul').html(html);
				}
			});
		}
	};
	guest.init();
})

